﻿using System;
using System.Collections.Generic;

namespace HigLabo.Net.Twitter
{
    /// <summary>
    /// 
    /// </summary>
    public class UpdateFriendshipCommand : TwitterCommand
    {
        private Int64 _UserID = 0;
        private String _ScreenName = "";
        private Boolean _Device = false;
        private Boolean _Retweets = false;
        /// <summary>
        /// 
        /// </summary>
        public String ScreenName
        {
            get { return _ScreenName; }
            set { _ScreenName = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public Int64 UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public Boolean Device
        {
            get { return _Device; }
            set { _Device = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public Boolean Retweets
        {
            get { return _Retweets; }
            set { _Retweets = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        protected override IDictionary<string, string> CreateParameters()
        {
            Dictionary<String, String> d = new Dictionary<string, string>();
            d["screen_name"] = this.ScreenName;
            d["user_id"] = this.UserID.ToString();
            d["device"] = this.Device.ToString().ToLower();
            d["retweets"] = this.Retweets.ToString().ToLower();
            return d;
        }
    }
}
